package net.lcheng.manage.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by qiliping on 16/4/20.
 */
public class RedeemModel {
    @NotEmpty
    private String redeemId;
    @NotNull(message = "请填写净值")
    private Double netvalue;
    @NotNull(message = "请填写份额")
    private Double quantity;
    @NotNull(message = "请填写金额")
    private Double amount;
    @Pattern(regexp = "^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$",message = "日期格式不正确")
    private String redeemDate;
    @NotNull(message = "请填写交易费用")
    private Double tradeFee = 0.0;

    public Double getTradeFee() {
        return tradeFee;
    }

    public void setTradeFee(Double tradeFee) {
        this.tradeFee = tradeFee;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getRedeemDate() {
        return redeemDate;
    }

    public void setRedeemDate(String redeemDate) {
        this.redeemDate = redeemDate;
    }

    public String getRedeemId() {
        return redeemId;
    }

    public void setRedeemId(String redeemId) {
        this.redeemId = redeemId;
    }

    public Double getNetvalue() {
        return netvalue;
    }

    public void setNetvalue(Double netvalue) {
        this.netvalue = netvalue;
    }
}
